package com.yuan.mint.activity;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;

import com.yuan.mint.utils.AppManager;

public class BaseActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AppManager.getInstance().addActivity(this);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        AppManager.getInstance().finishActivity();
    }
}

